

module.exports = {
  lintOnSave: false, //禁用eslint
  publicPath:process.env.NODE_ENV === "production"?'./':'/',
  outputDir:'dist',
  css: {
    loaderOptions: {
      // modules: true,
      // 给 sass-loader 传递选项
      sass: {
          data: `@import "@/common/style/variables.scss";`
      }
    }
  },
  devServer: {
    open: process.platform === 'darwin',
    // host: '0.0.0.0',
    port: 1024,
    hotOnly: false,
    proxy: null, // 代理
    before: app => {
      // `app` 是一个 express 实例
    }
  },

  productionSourceMap: false,
}
